﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/philadmin/Philadmin.Master"
    CodeBehind="ViewTourCost.aspx.vb" Inherits="Phila.ViewTourCost" %>

<%@ Register Assembly="RadGrid.Net2" Namespace="Telerik.WebControls" TagPrefix="radG" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">
    <h1>
        View Tour Cost</h1>
    <div align="center">
        <asp:Label ID="lblMsg" runat="server"></asp:Label></div>
    <radG:RadGrid ID="radGrdCost" runat="server" Width="99%" PageSize="20" AllowSorting="True"
        Skin="Telerik" AllowPaging="True" ShowGroupPanel="True" AutoGenerateColumns="False"
        GridLines="None" EnableAJAX="True" AllowFilteringByColumn="True">
        <PagerStyle Mode="NextPrevNumericAndAdvanced"></PagerStyle>
        <MasterTableView Width="100%" GroupLoadMode="Client" GroupsDefaultExpanded="False"
            CommandItemDisplay="Top" DataKeyNames="ID">
            <CommandItemTemplate>
                <table width="100%" border="0">
                    <tr>
                        <td valign="top" align="right">
                            <a href="EditTourCost.aspx">
                                <img src="../RadControls/Grid/Skins/AddRecord.gif" align="absmiddle" />Add New</a>
                        </td>
                    </tr>
                </table>
            </CommandItemTemplate>
            <GroupByExpressions>
                <radG:GridGroupByExpression>
                    <SelectFields>
                        <radG:GridGroupByField FieldAlias="TourName" FieldName="TourName" HeaderText="Tour Name" />
                    </SelectFields>
                    <GroupByFields>
                        <radG:GridGroupByField FieldName="TourName" FieldAlias="TourName" HeaderText="Tour Name" />
                    </GroupByFields>
                </radG:GridGroupByExpression>
            </GroupByExpressions>
            <RowIndicatorColumn Visible="False">
                <HeaderStyle Width="20px"></HeaderStyle>
            </RowIndicatorColumn>
            <ExpandCollapseColumn Visible="False">
                <HeaderStyle Width="19px"></HeaderStyle>
            </ExpandCollapseColumn>
            <Columns>
                <radG:GridTemplateColumn AllowFiltering="False" Groupable="false" UniqueName="TemplateEditColumn"
                    HeaderText="Edit">
                    <ItemTemplate>
                        <a href="EditTourCost.aspx?id=<%#DataBinder.Eval(Container.DataItem,"ID")%>">
                            <img src="../RadControls/Grid/Skins/Edit.gif" alt="Edit" title="Edit" style="border: 0px;" />
                        </a>
                    </ItemTemplate>
                    <HeaderStyle Width="50px" />
                </radG:GridTemplateColumn>
                <%--<radG:GridBoundColumn SortExpression="Pax_1" HeaderText="Pax 1" HeaderButtonType="TextButton"
                                DataField="Pax_1" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Pax_2" HeaderText="Pax 2" HeaderButtonType="TextButton"
                                DataField="Pax_2" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Pax_3" HeaderText="Pax 3" HeaderButtonType="TextButton"
                                DataField="Pax_3" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Pax_4" HeaderText="Pax 4" HeaderButtonType="TextButton"
                                DataField="Pax_14" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Pax_5" HeaderText="Pax 5" HeaderButtonType="TextButton"
                                DataField="Pax_5" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Pax_Child" HeaderText="Child" HeaderButtonType="TextButton"
                                DataField="Pax_Child" DataFormatString="{0:0.00}">
                            </radG:GridBoundColumn>
                            <radG:GridBoundColumn SortExpression="Valid" HeaderText="Valid upto" HeaderButtonType="TextButton"
                                DataField="Valid">
                            </radG:GridBoundColumn>--%>
                <radG:GridBoundColumn SortExpression="StartDate" HeaderText="StartDate" HeaderButtonType="TextButton"
                    DataField="StartDate" DataFormatString="{0:d}">
                </radG:GridBoundColumn>
                <radG:GridBoundColumn SortExpression="EndDate" HeaderText="EndDate" HeaderButtonType="TextButton"
                    DataField="EndDate" DataFormatString="{0:d}">
                </radG:GridBoundColumn>
                <radG:GridBoundColumn SortExpression="ClientType" HeaderText="Client Type" HeaderButtonType="TextButton"
                    DataField="ClientType">
                </radG:GridBoundColumn>
                <radG:GridButtonColumn ConfirmText="Delete this record?" ButtonType="ImageButton"
                    ImageUrl="../RadControls/Grid/Skins/Delete.gif" CommandName="Delete" Text="Delete"
                    UniqueName="DeleteColumn">
                    <HeaderStyle Width="20px" />
                    <ItemStyle HorizontalAlign="Center" CssClass="MyImageButton" />
                </radG:GridButtonColumn>
            </Columns>
        </MasterTableView>
        <%--<ClientSettings ReorderColumnsOnClient="True" AllowDragToGroup="True" AllowColumnsReorder="True">
                        <Selecting AllowRowSelect="True"></Selecting>
                        <Resizing AllowRowResize="True" AllowColumnResize="True" EnableRealTimeResize="True"
                            ResizeGridOnColumnResize="False"></Resizing>
                    </ClientSettings>--%>
        <ClientSettings AllowGroupExpandCollapse="true">
            <Selecting AllowRowSelect="False" />
        </ClientSettings>
    </radG:RadGrid>
</asp:Content>
